//
//  AddressTableViewCell.m
//  FlowerRainGround
//
//  Created by lanou on 16/4/26.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "AddressTableViewCell.h"

static UIButton *starButton;
@implementation AddressTableViewCell

- (void)setAddressmodel:(addressModel *)addressmodel{
    self.repiteName.text = addressmodel.recipite;
    self.phoneNumber.text = addressmodel.phoneNumber;
    self.addressed.text = [addressmodel.nowAddress stringByAppendingString:[NSString stringWithFormat:@",%@",addressmodel.infoAddress]];
}

- (IBAction)chooseButton:(id)sender {
    UIButton *button = (UIButton *)sender;
    
    //设置static全局的button
    if (button != starButton) {
        starButton.selected = NO;
        starButton = button;
    }
    starButton.selected = YES;
    
   
    
}




- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
